* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft YaHei", Arial, sans-serif;
}

body {
  background-color: #f5f7fa;
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  display: flex;
  min-height: 100vh;
}

/* 顶部导航栏 - 与图片完全一致 */
.top-nav {
  background-color: #2c3e50;
  color: white;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 导航栏样式 */
.navbar {
  background-color: #2c3e50;
  color: white;
  padding: 0 20px;
  display: flex;
  height: 60px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.nav-item {
  padding: 18px 20px;
  cursor: pointer;
  position: relative;
  font-weight: 500;
}

.nav-item.active {
  background-color: #3498db;
}

.nav-item.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #1abc9c;
}

.nav-title {
  font-size: 20px;
  font-weight: bold;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 5px;
}

.nav-menu li {
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.3s;
  font-size: 14px;
}

.nav-menu li:hover {
  background: #34495e;
}

.nav-menu li.active {
  background: #3498db;
}

/* 偏白色侧边栏 */
.sidebar {
  width: 280px;
  background: #f8f9fa;
  padding: 80px 0 20px 0;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid #e0e0e0;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
}

.sidebar-section {
  margin-bottom: 25px;
}

.sidebar-header {
  padding: 15px 20px;
  font-weight: bold;
  color: #2c3e50;
  background: #e8f4ff;
  font-size: 16px;
  border-bottom: 1px solid #d0e0f0;
}

.sidebar-item {
  padding: 12px 20px;
  color: #2c3e50;
  font-size: 14px;
  border-left: 4px solid transparent;
  display: flex;
  align-items: center;
  transition: all 0.2s;
}

.sidebar-item:hover {
  background: #e8f4ff;
  border-left-color: #3498db;
}

.sidebar-item.active {
  background: #e8f4ff;
  border-left-color: #3498db;
  font-weight: 500;
  color: #2c3e50;
}

.sidebar-icon {
  margin-right: 10px;
  width: 24px;
  text-align: center;
  color: #3498db;
}

/* 主内容区 */
.main-content {
  flex: 1;
  padding: 80px 20px 20px 300px;
  background: white;
  min-height: 100vh;
}

/* 插件管理标题 */
.plugin-title {
  font-size: 18px;
  color: #2c3e50;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #3498db;
}

/* 插件分类区域 */
.plugin-category {
  margin-bottom: 30px;
}

.category-title {
  font-size: 16px;
  color: #2c3e50;
  margin-bottom: 15px;
  font-weight: bold;
}

/* 插件卡片 - 最小尺寸 */
.plugin-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 15px;
}

.plugin-card {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 15px;
  border-left: 4px solid #3498db;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.plugin-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.plugin-icon {
  width: 36px;
  height: 36px;
  background: #3498db;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  color: white;
  font-size: 16px;
}

.plugin-info {
  flex: 1;
}

.plugin-name {
  font-weight: bold;
  color: #2c3e50;
  font-size: 15px;
  margin-bottom: 3px;
}

.plugin-meta {
  font-size: 11px;
  color: #7f8c8d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.plugin-status {
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: bold;
}

.status-installed {
  background: #e8f7f0;
  color: #27ae60;
}

.status-available {
  background: #e8f4fc;
  color: #3498db;
}

.plugin-desc {
  font-size: 13px;
  color: #5a6c7d;
  line-height: 1.4;
  margin: 8px 0 12px 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.plugin-actions {
  display: flex;
  gap: 8px;
}

.btn {
  padding: 5px 10px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
  font-size: 12px;
}

.btn-primary {
  background: #3498db;
  color: white;
}

.btn-primary:hover {
  background: #2980b9;
}

.btn-secondary {
  background: #ecf0f1;
  color: #7f8c8d;
}

.btn-secondary:hover {
  background: #dde4e6;
}
